<html>
<head>
    <meta charSet="UTF-8">
    <title>xtermjs</title>
    <link rel="stylesheet" href="/webjars/xterm/2.9.2/dist/xterm.css"/>
    <script type="application/javascript" src="/webjars/xterm/2.9.2/dist/xterm.js"></script>
    <script type="application/javascript" src="/webjars/xterm/2.9.2/dist/addons/attach/attach.js"></script>
</head>
<body>
<div style="width:1000px" id="xterm"></div>
<script type="application/javascript">
    var term = new Terminal({
        cursorBlink: false,
        cols: 100,
        rows: 50
    });
    term.open(document.getElementById('xterm'));
    var socket = new WebSocket('ws://localhost:8887/ws/container/exec?width=100&height=50&ip=172.20.163.108&containerId=c4f58deb4e93&token=12343232');
    term.attach(socket);
    term.focus();
</script>
</body>
</html>